FROM ubuntu:20.04

ENV DEBIAN_FRONTEND=noninteractive

# Install system packages then clean up to minimize image size

RUN apt-get update
RUN apt-get install -y \
    git


RUN apt-get clean



#RUN  apt install  -y python   python3-pip
RUN  apt install  -y python3   python3-pip

RUN pip install mkdocs-material  mike  mkdocs-video


RUN cp /usr/bin/python3 /usr/bin/python
###



RUN   apt-get install   -y  libssl-dev   vim


COPY  ./src/  /home/libs




RUN  python /home/libs/chinese-search.py


RUN  python /home/libs/markdown-py/replace-markdown.py


WORKDIR /home/libs
# 解压 文件/home/libs/git-crypt.tar.gz
RUN  tar -zxvf   git-crypt.tar.gz  

WORKDIR /home/libs/git-crypt
RUN  make  && make install 

RUN apt install -y iputils-ping


# 设置 git的信息
RUN  git config --global user.email "emery@docker.yan"
RUN  git config --global user.name "Emery Docker"



RUN mkdir -p /home/mkdocs-project/

WORKDIR /home/mkdocs-project/


# #  docker-compose run app   mkdocs build


# 193 MB
#  ccr.ccs.tencentyun.com/emery_docker/mkdocs-tex:2.3.30-arm64


# 此版本 为
#  ccr.ccs.tencentyun.com/emery_docker/mkdocs-tex:1.0-x64
# 大概50M
# ccr.ccs.tencentyun.com/emery_docker/mkdocs-tex:1.0-x64


# # ccr.ccs.tencentyun.com/emery_docker/mkdocs-tex:1.0-x64

#
